cmake_minimum_required (VERSION 3.8)

#project(wolfssl)

include (../options.cmake)

include_directories(".")

add_definitions(-DWOLFSSL_LIB)


IF(WIN32)
	add_definitions(-DCYASSL_EROAD)
	add_definitions(-DWOLFSSL_USER_SETTINGS)
	add_definitions(-DCYASSL_USER_SETTINGS)
	add_definitions(-DWOLFSSL_IGNORE_FILE_WARN)
	#add_definitions(-DHAVE_FIPS)
	#add_definitions(-DOPENSSL_EXTRA)
ELSEIF(UNIX)
	add_definitions(-DCYASSL_EROAD)
ENDIF()


file(GLOB wolfssl_srcs "wolfcrypt/src/*.c*")
add_library(wolfssl_objs OBJECT ${wolfssl_srcs})
add_library(wolfssl STATIC $<TARGET_OBJECTS:wolfssl_objs>)
